//
//  HSYCollectionViewController.h
//  HSY
//
//  Created by 陈浩 on 2017/4/1.
//  Copyright © 2017年 金开门. All rights reserved.
//

#import "HSYBaseViewController.h"

@interface HSYBaseCollectionViewController : HSYBaseViewController<UICollectionViewDelegate,UICollectionViewDataSource>

@property (nonatomic, strong) UICollectionView *collectionView;

@property (nonatomic, assign) NSInteger pageIdex;
@property (nonatomic, assign) NSInteger pageStep;


- (UIEdgeInsets)hsy_collectionViewEdgeInsets; //tableView的四个边距

- (BOOL)hsy_allowPullUp; //允许上提加载
- (BOOL)hsy_allowPullDown; //允许下拉刷新

- (void)hsy_headerEndRefreshing; //结束下拉刷新状态

- (void)hsy_headerBeginRefreshing;
- (void)hsy_footerBeginRefreshing;

- (void)hsy_footerEndRefreshing; //结束上提加载状态
- (void)hsy_footerEndRefreshingWithNoMoreData; //结束上提加载状态， 无更多数据

- (void)hsy_handlePullDownToLoadNew; //下拉刷新执行的方法
- (void)hsy_handlePullUpToLoadMore; //上提加载执行的方法
- (void)hsy_loadServerData;

@end
